/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bttk.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 商户管理Entity
 * @author soyatec
 * @version 2016-11-02
 */
public class TCustomerCrowdHelp extends DataEntity<TCustomerCrowdHelp> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 商户编号 父类
	private String customerId;		// 帮筹人客户编号
	private String customerCrowdId;		// 帮筹的众筹活动编号
	private Date helpTime;		// 帮筹时间
	private String helpMoney;		// 帮筹金额
	private String takenStatus;		// 帮筹人核销状态（0-未核销；1-已核销）
	
	public TCustomerCrowdHelp() {
		super();
	}

	public TCustomerCrowdHelp(String id){
		super(id);
	}

	public TCustomerCrowdHelp(User user){
		this.user = user;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=11, message="帮筹人客户编号长度必须介于 0 和 11 之间")
	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
	
	@Length(min=0, max=11, message="帮筹的众筹活动编号长度必须介于 0 和 11 之间")
	public String getCustomerCrowdId() {
		return customerCrowdId;
	}

	public void setCustomerCrowdId(String customerCrowdId) {
		this.customerCrowdId = customerCrowdId;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getHelpTime() {
		return helpTime;
	}

	public void setHelpTime(Date helpTime) {
		this.helpTime = helpTime;
	}
	
	public String getHelpMoney() {
		return helpMoney;
	}

	public void setHelpMoney(String helpMoney) {
		this.helpMoney = helpMoney;
	}
	
	@Length(min=0, max=6, message="帮筹人核销状态（0-未核销；1-已核销）长度必须介于 0 和 6 之间")
	public String getTakenStatus() {
		return takenStatus;
	}

	public void setTakenStatus(String takenStatus) {
		this.takenStatus = takenStatus;
	}
	
}